{% extends "base.html" %}

{% block content %}
<div class="row justify-content-center">
    <div class="col-md-8">
        <div class="card">
            <div class="card-header bg-danger text-white">
                <h4 class="mb-0">禁止访问</h4>
            </div>
            <div class="card-body text-center">
                <h1 class="display-1">403</h1>
                <p class="lead">抱歉，您没有权限访问此页面。</p>
                <p>请确认您已登录并拥有足够的权限。</p>
                <div class="mt-4">
                    <a href="{{ url_for('main.index') }}" class="btn btn-primary me-2">返回首页</a>
                    {% if not current_user.is_authenticated %}
                    <a href="{{ url_for('auth.login') }}" class="btn btn-outline-primary">登录</a>
                    {% endif %}
                </div>
            </div>
        </div>
    </div>
</div>
{% endblock %}